export interface ResponseData {
  code: number
  message: string
  ok: boolean
}

export interface RoleData {
  records: RoleRecords[]
  total: number
  size: number
  current: number
  orders: []
  optimizeCountSql: boolean
  hitCount: boolean
  countId: null
  maxLimit: null
  searchCount: boolean
  pages: number
}

export interface RoleRecords {
  id?: number | string
  createTime?: string
  updateTime?: string
  roleName: string
  remark?: null
}
export interface RoleResponseData extends ResponseData {
  data: RoleData
}
export interface ResponseMenu {
  id: number
  createTime: string
  updateTime: string
  pid: number
  name: string
  code: string
  toCode: string
  type: number
  status: null
  level: number
  children: ResponseMenuList
  select: boolean
}
export type ResponseMenuList = ResponseMenu[]
export interface ResponseRoleMenu extends ResponseData {
  data: ResponseMenuList
}
